<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        //将arr和剩余的数组合并
        const arrConcat = (arr, ...arg) => {
            let array = arr.concat(...arg)
            return array
        }
        console.log(arrConcat([1,2,3,4,5,[2,3,4,5], [3,2,1]]));
        
    </script>
</body>
</html>